package ar.fiuba.tp7552.buildadmin.webactions.gastos;

import java.util.Collection;

import ar.fiuba.tp7552.buildadmin.model.gastos.TipoGasto;
import ar.fiuba.tp7552.buildadmin.service.TipoGastoService;
import ar.fiuba.tp7552.buildadmin.webactions.BaseAction;

public class TipoGastoListAction {
	
	TipoGastoService tgastoService;
	
	// ~~ Constructor ====================================================
	
	public TipoGastoListAction(TipoGastoService tgastoService) {
		super();
		this.tgastoService = tgastoService;
	}
	
	// ~~ Actions ========================================================

	public String getAll() {
		return BaseAction.SUCCESS;
	}
	
	public Collection<TipoGasto> getTipoGastos() {
		return tgastoService.getAll();
	}

}
